3.5.14 \(\int \frac {(a+b x^2)^p}{x^2 (d+e x)} \, dx\) [414]

Optimal. Leaf size=178 \[ -\frac {\left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} F_1\left (-\frac {1}{2};-p,1;\frac {1}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d x}-\frac {e^3 \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;\frac {e^2 \left (a+b x^2\right )}{b d^2+a e^2}\right )}{2 d^2 \left (b d^2+a e^2\right ) (1+p)}+\frac {e \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1+\frac {b x^2}{a}\right )}{2 a d^2 (1+p)} \]

[Out]

-(b*x^2+a)^p*AppellF1(-1/2,1,-p,1/2,e^2*x^2/d^2,-b*x^2/a)/d/x/((1+b*x^2/a)^p)-1/2*e^3*(b*x^2+a)^(1+p)*hypergeo
m([1, 1+p],[2+p],e^2*(b*x^2+a)/(a*e^2+b*d^2))/d^2/(a*e^2+b*d^2)/(1+p)+1/2*e*(b*x^2+a)^(1+p)*hypergeom([1, 1+p]
,[2+p],1+b*x^2/a)/a/d^2/(1+p)

________________________________________________________________________________________

Rubi [A]
time = 0.11, antiderivative size = 178, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.350, Rules used = {973, 525, 524, 457, 88, 67, 70} \begin {gather*} -\frac {\left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} F_1\left (-\frac {1}{2};-p,1;\frac {1}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d x}-\frac {e^3 \left (a+b x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac {e^2 \left (b x^2+a\right )}{b d^2+a e^2}\right )}{2 d^2 (p+1) \left (a e^2+b d^2\right )}+\frac {e \left (a+b x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac {b x^2}{a}+1\right )}{2 a d^2 (p+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x^2)^p/(x^2*(d + e*x)),x]

[Out]

-(((a + b*x^2)^p*AppellF1[-1/2, -p, 1, 1/2, -((b*x^2)/a), (e^2*x^2)/d^2])/(d*x*(1 + (b*x^2)/a)^p)) - (e^3*(a +
 b*x^2)^(1 + p)*Hypergeometric2F1[1, 1 + p, 2 + p, (e^2*(a + b*x^2))/(b*d^2 + a*e^2)])/(2*d^2*(b*d^2 + a*e^2)*
(1 + p)) + (e*(a + b*x^2)^(1 + p)*Hypergeometric2F1[1, 1 + p, 2 + p, 1 + (b*x^2)/a])/(2*a*d^2*(1 + p))

Rule 67

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((c + d*x)^(n + 1)/(d*(n + 1)*(-d/(b*c))^m))
*Hypergeometric2F1[-m, n + 1, n + 2, 1 + d*(x/c)], x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[n] && (Intege
rQ[m] || GtQ[-d/(b*c), 0])

Rule 70

Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(b*c - a*d)^n*((a + b*x)^(m + 1)/(b^(
n + 1)*(m + 1)))*Hypergeometric2F1[-n, m + 1, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m
}, x] && NeQ[b*c - a*d, 0] &&  !IntegerQ[m] && IntegerQ[n]

Rule 88

Int[((e_.) + (f_.)*(x_))^(p_)/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), In
t[(e + f*x)^p/(a + b*x), x], x] - Dist[d/(b*c - a*d), Int[(e + f*x)^p/(c + d*x), x], x] /; FreeQ[{a, b, c, d,
e, f, p}, x] &&  !IntegerQ[p]

Rule 457

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[x^(Simplify[(m + 1)/n] - 1)*(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] &&
 NeQ[b*c - a*d, 0] && IntegerQ[Simplify[(m + 1)/n]]

Rule 524

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[a^p*c^q*
((e*x)^(m + 1)/(e*(m + 1)))*AppellF1[(m + 1)/n, -p, -q, 1 + (m + 1)/n, (-b)*(x^n/a), (-d)*(x^n/c)], x] /; Free
Q[{a, b, c, d, e, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[m, -1] && NeQ[m, n - 1] && (IntegerQ[p] || GtQ[a
, 0]) && (IntegerQ[q] || GtQ[c, 0])

Rule 525

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Dist[a^IntPar
t[p]*((a + b*x^n)^FracPart[p]/(1 + b*(x^n/a))^FracPart[p]), Int[(e*x)^m*(1 + b*(x^n/a))^p*(c + d*x^n)^q, x], x
] /; FreeQ[{a, b, c, d, e, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[m, -1] && NeQ[m, n - 1] &&  !(IntegerQ[
p] || GtQ[a, 0])

Rule 973

Int[(((g_.)*(x_))^(n_.)*((a_) + (c_.)*(x_)^2)^(p_))/((d_) + (e_.)*(x_)), x_Symbol] :> Dist[d*((g*x)^n/x^n), In
t[(x^n*(a + c*x^2)^p)/(d^2 - e^2*x^2), x], x] - Dist[e*((g*x)^n/x^n), Int[(x^(n + 1)*(a + c*x^2)^p)/(d^2 - e^2
*x^2), x], x] /; FreeQ[{a, c, d, e, g, n, p}, x] && NeQ[c*d^2 + a*e^2, 0] &&  !IntegerQ[p] &&  !IntegersQ[n, 2
*p]

Rubi steps

\begin {align*} \int \frac {\left (a+b x^2\right )^p}{x^2 (d+e x)} \, dx &=d \int \frac {\left (a+b x^2\right )^p}{x^2 \left (d^2-e^2 x^2\right )} \, dx-e \int \frac {\left (a+b x^2\right )^p}{x \left (d^2-e^2 x^2\right )} \, dx\\ &=-\left (\frac {1}{2} e \text {Subst}\left (\int \frac {(a+b x)^p}{x \left (d^2-e^2 x\right )} \, dx,x,x^2\right )\right )+\left (d \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p}\right ) \int \frac {\left (1+\frac {b x^2}{a}\right )^p}{x^2 \left (d^2-e^2 x^2\right )} \, dx\\ &=-\frac {\left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} F_1\left (-\frac {1}{2};-p,1;\frac {1}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d x}-\frac {e \text {Subst}\left (\int \frac {(a+b x)^p}{x} \, dx,x,x^2\right )}{2 d^2}-\frac {e^3 \text {Subst}\left (\int \frac {(a+b x)^p}{d^2-e^2 x} \, dx,x,x^2\right )}{2 d^2}\\ &=-\frac {\left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} F_1\left (-\frac {1}{2};-p,1;\frac {1}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d x}-\frac {e^3 \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;\frac {e^2 \left (a+b x^2\right )}{b d^2+a e^2}\right )}{2 d^2 \left (b d^2+a e^2\right ) (1+p)}+\frac {e \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1+\frac {b x^2}{a}\right )}{2 a d^2 (1+p)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.39, size = 214, normalized size = 1.20 \begin {gather*} \frac {\left (a+b x^2\right )^p \left (\frac {e \left (\frac {e \left (-\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} \left (\frac {e \left (\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} F_1\left (-2 p;-p,-p;1-2 p;\frac {d-\sqrt {-\frac {a}{b}} e}{d+e x},\frac {d+\sqrt {-\frac {a}{b}} e}{d+e x}\right )}{p}-\frac {2 d \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (-\frac {1}{2},-p;\frac {1}{2};-\frac {b x^2}{a}\right )}{x}-\frac {e \left (1+\frac {a}{b x^2}\right )^{-p} \, _2F_1\left (-p,-p;1-p;-\frac {a}{b x^2}\right )}{p}\right )}{2 d^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x^2)^p/(x^2*(d + e*x)),x]

[Out]

((a + b*x^2)^p*((e*AppellF1[-2*p, -p, -p, 1 - 2*p, (d - Sqrt[-(a/b)]*e)/(d + e*x), (d + Sqrt[-(a/b)]*e)/(d + e
*x)])/(p*((e*(-Sqrt[-(a/b)] + x))/(d + e*x))^p*((e*(Sqrt[-(a/b)] + x))/(d + e*x))^p) - (2*d*Hypergeometric2F1[
-1/2, -p, 1/2, -((b*x^2)/a)])/(x*(1 + (b*x^2)/a)^p) - (e*Hypergeometric2F1[-p, -p, 1 - p, -(a/(b*x^2))])/(p*(1
 + a/(b*x^2))^p)))/(2*d^2)

________________________________________________________________________________________

Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (b \,x^{2}+a \right )^{p}}{x^{2} \left (e x +d \right )}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)^p/x^2/(e*x+d),x)

[Out]

int((b*x^2+a)^p/x^2/(e*x+d),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p/x^2/(e*x+d),x, algorithm="maxima")

[Out]

integrate((b*x^2 + a)^p/((x*e + d)*x^2), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p/x^2/(e*x+d),x, algorithm="fricas")

[Out]

integral((b*x^2 + a)^p/(x^3*e + d*x^2), x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)**p/x**2/(e*x+d),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p/x^2/(e*x+d),x, algorithm="giac")

[Out]

integrate((b*x^2 + a)^p/((x*e + d)*x^2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (b\,x^2+a\right )}^p}{x^2\,\left (d+e\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x^2)^p/(x^2*(d + e*x)),x)

[Out]

int((a + b*x^2)^p/(x^2*(d + e*x)), x)

________________________________________________________________________________________